import os

ip_Reflection = {
    '广州': '212.11.36.214',
    '深圳': '212.11.82.91',
    '东莞': '212.11.120.125',
    '佛山': '212.11.146.128',
    '中山': '212.11.172.10',
    '珠海': '212.11.184.155',
    '江门': '212.11.207.8',
    '汕头': '212.11.193.76',
    '湛江': '212.11.232.77',
    '肇庆': '212.12.6.76',
    '清远': '212.12.0.154',
    '茂名': '212.11.246.77',
    '梅州': '212.12.27.76',
    '潮州': '212.12.18.77',
    '阳江': '212.11.252.80:33899',
    '河源': '212.12.35.76',
    '汕尾': '212.12.38.77:33899',
    '云浮': '212.12.23.77',
    '科学城': '212.11.9.1',
    '松山湖': '212.11.124.77',
    '省平台': '212.11.10.17'
}

if not os.path.exists(r'./bat'):
    os.mkdir(r'./bat')
for i in ip_Reflection:
    with open(r'./bat\\' + i + '.bat', 'w') as f:
        print(f'''
@echo off
%1 mshta vbscript:createobject("shell.application").shellexecute("%~s0","::","","runas",1)(window.close)&exit
mstsc -v {ip_Reflection[i]} /w:1920 /h:1080
cd /d %~dp0
''',file=f)
